package com.igeekhome.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 陈维豪
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WaybillRuleDto {

    private Integer id;

    private String ruleName;

    private String beginChar;

    private String length;

    private Integer maxWayBillId;

    private Integer typeId;

    /**
     * 单号规则名称
     */
    private String typeName;

    private String usageStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private Date updateTime;

    private String remarks;

    private Integer status;

}
